import request from '@/utils/request'

// 查询期货日行情历史列表
export function listFuturesDailyHistory(query) {
  return request({
    url: '/invest/futuresDailyHistory/list',
    method: 'get',
    params: query
  })
}

// 查询期货日行情历史详细
export function getFuturesDailyHistory(id) {
  return request({
    url: '/invest/futuresDailyHistory/' + id,
    method: 'get'
  })
}

// 新增期货日行情历史
export function addFuturesDailyHistory(data) {
  return request({
    url: '/invest/futuresDailyHistory',
    method: 'post',
    data
  })
}

// 修改期货日行情历史
export function updateFuturesDailyHistory(data) {
  return request({
    url: '/invest/futuresDailyHistory',
    method: 'put',
    data
  })
}

// 删除期货日行情历史
export function delFuturesDailyHistory(id) {
  return request({
    url: '/invest/futuresDailyHistory/' + id,
    method: 'delete'
  })
}

// 同步期货日行情历史列表
export function synFuturesDailyHistory(query) {
  return request({
    url: '/invest/futuresDailyHistory/synFuturesDailyHistory',
    method: 'get',
    params: query
  })
}
